#include "ObjectFactory.hpp"
#include "TestObject.hpp"
#include <QDebug>

int main()
{
   ObjectFactory fac;
   fac.registerClass<TestObject>();
    qDebug()<<"begin-------------------------------";
    TestObject* object = dynamic_cast<TestObject*>(fac.createObject( "TestObject" ));
    object->setText("template factory");
    qDebug()<<object->text();
}
